home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / CTOOLS10.ARJ / MAKEFILE.UX < prev    next >
Text File  |  1991-10-03  |  2KB  |  85 lines

  1. #############################################################################
  2. #
  3. #                   Copyright (C) 1991 Kendall Bennett.
  4. #                           All rights reserved.
  5. #
  6. # Descripton:   Makefile for the tools.lib library.
  7. #               SGI Iris 4D version. 
  8. #
  9. # $Id$
  10. #
  11. #############################################################################
  12.  
  13. # The following two lines will need to be edited for the environment being
  14. # used to compile the library.
  15.  
  16. CC              = cc
  17. HOME            = /usr/people/rcs/stude/s892992
  18.  
  19. INC_DIR         = $(HOME)/src/include
  20. LIB_DIR         = $(HOME)/src/lib
  21. LIB             = ar
  22. LIB_FLAGS       = rv
  23. LIBNAME         = tools
  24. INC_DEST        = $(HOME)/src/include/tools
  25. CC_DOPT         =
  26.  
  27. CC_FLAGS        = -O -I$(INC_DIR) -L$(LIB_DIR) $(CC_DOPT) -D__IRIS4D__
  28. LIBFILE         = $(LIB_DIR)/lib$(LIBNAME).a
  29.  
  30. # Implicit rules to make the object files for the library...
  31.  
  32. .c.o:
  33.     $(CC) $(CC_FLAGS) -c $<
  34.      
  35. # All the object modules in the library
  36.  
  37. OBJECTS         = dlist.o getopt.o hash.o hashadd.o hashpjw.o \
  38.                   list.o random.o set.o ssort.o avl.o
  39.  
  40. all: $(LIBFILE) install_inc
  41.  
  42. $(LIBFILE): $(OBJECTS)
  43.     $(LIB) $(LIB_FLAGS) $(LIBFILE) $(OBJECTS) 
  44.  
  45. # Header file dependencies
  46.  
  47. $(OBJECTS):    tools/debug.h
  48.  
  49. dlist.o:    tools/dlist.h
  50. getopt.o:    tools/getopt.h
  51. hash.o:        tools/hash.h
  52. hashadd.o:    tools/hash.h
  53. hashpjw.o:    tools/hash.h
  54. list.o:        tools/list.h
  55. random.o:    tools/random.h
  56. set.o:        tools/set.h
  57. ssort.o:    tools/ssort.h
  58. avl.o:        tools/avl.h
  59.  
  60. # Install the header files in the correct directory for normal use
  61.  
  62. install_inc:
  63.     cp tools/*.h $(INC_DEST)
  64.  
  65. clean:
  66.     rm -f *.o core *.cdb *.tar.Z *.zoo
  67.  
  68. # Tar the files into a compressed tar archive
  69.  
  70. tar:
  71.     tar -cvf $(LIBNAME).tar *
  72.  
  73. # Zoo the files into a distribution archive to send to MS DOS
  74.  
  75. zoo:
  76.     -rm tools.zoo
  77.     zoo afI tools.zoo < zoo.fil
  78.  
  79. # Unzoo the files
  80.  
  81. unzoo:
  82.     zoo xOS// tools.zoo
  83.     trans -u zoo.fil
  84.     trans -uf zoo.fil
  85.